package com.hawthorn.admin.repository;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hawthorn.admin.model.po.AppUserPO;
import com.hawthorn.admin.repository.provider.AppUserSqlProvider;
import com.hawthorn.platform.repository.DBMapper;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>todo AppUser Mapper类</p>
 *
 * @version v1.0.1
 * @author: sunwanzhong
 * –
 * @created: 2023/2/14 21:52
 * @copyright: Copyright (c) 2023 sunwanzhong
 */
@Repository
public interface AppUserMapper extends DBMapper<AppUserPO>
{
  @SelectProvider(AppUserSqlProvider.class)
  IPage<Map<String, Object>> findAppUser(Page<Map<String, Object>> page, String qc);

  @SelectProvider(AppUserSqlProvider.class)
  List<Map<String, Object>> exportAppUser(String fields, String qc);

  @SelectProvider(AppUserSqlProvider.class)
  Map<String, Object> findStoreAppUser(String phone);
}
